#pragma once

#include "effectbase.h"
#include <osg\Vec4>
#include <osg\Group>

namespace VrDataCore
{
	class VRDATACORE_EXPORT AlphaMeshEffect:public EffectBase
	{
	public:
		AlphaMeshEffect(void);
		void setMesh(QString mesh);
		QString getMesh();
		virtual void apply(CoreBase::ActorBase* bindingactor);
		virtual void unApply(CoreBase::ActorBase* bindingactor);
		virtual void buildPropertyMap();
	//	virtual osg::ref_ptr<CoreBase::ActorBase> clone();
	protected:
		virtual ~AlphaMeshEffect(void);
		QString										_mesh;
		osg::ref_ptr<osg::Node>						_meshNode;
	};
}